import router from "../router";
import nProgress from "nprogress";
import 'nprogress/nprogress.css'

nProgress.configure({ showSpinner: false, speed: 500 })

router.beforeEach((to, from, next) => {
    nProgress.start()
    next()
})

router.afterEach(transition => {
    nProgress.done()
})